package com.ylzx;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan("com.ylzx.mapper") //扫描Mapper接口所在包（底层：通过接口生成实现类）
@EnableTransactionManagement //开启事务管理器
public class SpringbootDay04Application {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootDay04Application.class, args);
    }

}
